import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index'
import Test from '../views/Test'
import Search from '../views/Search'
import orderpay from '../views/orderpay'
import shoppingcart from '../views/shoppingcart'
import login from "../views/login";
import regist from "../views/regist";
import Introduce from "../views/Introduce";


Vue.use(VueRouter)

const router = new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/',
            component: Index
        },
        {
            path: '/test/:id',
            component: Test,
            props: true
        },
        {
            path: '/search',
            component: Search
        },
        {
            path: '/orderpay',
            component: orderpay
        },
        {
            
            path: '/login',
            component: login
        },
        {
            path: '/regist',
            component: regist
        },
        {
            path: '/shoppingcart',
            component: shoppingcart
        },
        {
            path: '/Introduce',
            component: Introduce
        }
    ]
})

export default router